package com.yb.proxy;

public class MonitorSession {
	private static ThreadLocal<MethodMonitor> monitorThreadLocal = new ThreadLocal<MethodMonitor>();
	public static void begin(String method){
		MethodMonitor logger = new MethodMonitor(method);
		System.out.println("begin monitor...");
		monitorThreadLocal.set(logger);
	}
	public static void end(){
		monitorThreadLocal.get().log();
	}
}
